/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-09-22 10:56:55
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-12-21 14:09:15
 * @FilePath: \ZHGD-Vue2\src\api\common\common.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 项目信息 就是工地名称 所属单位 List
export function deptList(query) {
  return request({
    // url: '/zhgd/dept/list',
    url: '/zhgd/product/deptList',
    method: 'get',
    params: query
  })
}


// 试验设备信息 List
export function laboratoryDeviceLIist(query) {
  return request({
    url: '/zhgd/laboratoryDevice/page',
    method: 'get',
    params: query
  })
}


// 工地树
export function businessDeptTree(query) {
  return request({
    url: '/system/user/businessDeptTree',
    method: 'get',
    params: query
  })
}



// 单点登录方法
export function unitLogin(username, m) {
  const data = {
    username,
    m,
  };
  return request({
    url: "/unitLogin",
    headers: {
      isToken: false,
    },
    method: "post",
    data: data,
  });
}

// 公司列表
export function businessDeptTreeTop(query) {
  return request({
    url: '/zhgd/nWarningUsing/businessDeptTreeTop',
    method: 'get',
    params: query
  })
}

